package com.cloud.service;

import com.cloud.config.FeignConfig;
import com.cloud.tools.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 11:50 2022/4/24
 * @Description:
 * @ClassName:
 */

@Component
@FeignClient(value = "notice-management-provider", configuration = FeignConfig.class)
public interface UserNoticeService {

    @GetMapping("/user/notice/manager")
    CommonResult fromManager();

    @GetMapping("/user/notice/approval")
    CommonResult fromApproval();

    @GetMapping("/volunteer/notice/approval")
    CommonResult fromApprovalForVolunteer();
}
